package co.yixiang.modules.product.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.validation.constraints.*;
import java.util.Date;
import co.yixiang.domain.BaseDomain;

/**
* @author lsh
* @date 2021-07-20
*/
@TableName("yx_commission_upgrade_type")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class YxCommissionUpgradeType extends BaseDomain {
    /** 升级任务类型表ID */
    @TableId
    private Long id;

    /** 类型名称 */
    @NotBlank
    private String upgradeName;

    /** 排序 */
    private Integer sort;

    /** 图标 */
    private String pic;

    /** 是否推荐 */
    private Integer isShow;




    /** 升级类型 */
    private Integer upgradeType;

    /** 升级sql表ID */
    private Long sqlId;


    public void copy(YxCommissionUpgradeType source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
